#include"list.h"


int main()
{
	ssw::list<int> ls;
	ls.push_back(1);
	ls.push_back(2);
	ls.push_back(3);
	ls.push_back(4);
	ls.push_back(5);
	ls.front_push(100);
	ls.front_push(100);
	ls.insert(++ls.begin(), 200);
	ls.insert(ls.end(), 200);
	ls.front_pop();
	ls.front_pop();
	ls.front_pop();
	ls.front_pop();
	ls.front_pop();
	ls.front_pop();
	ls.front_pop();
	ssw::list_iterator<int, const int&,const  int*> cit = ls.cbegin();
	while (cit!=ls.cend())
	{
	
		std::cout << *cit << " ";
		++cit;
	}
	std::cout << endl;
	/*ssw::list<int> ls1;
	ls1.push_back(1);
	ls1.push_back(2);
	ls1.push_back(3);
	ls1.push_back(4);
	ls1.push_back(5);
	ls1.push_back(6);
	ssw::list<int>::iterator it1 = ls1.begin();
	
	while (it1 != ls1.end())
	{
		std::cout << *it1 << " ";
		++it1;
	}
	std::cout << endl;
	ssw::list<int> ls2;
	ls2 = ls;
	ssw::list<int>::iterator it2 = ls2.begin();
	while (it2 != ls2.end())
	{
		std::cout << *it2 << " ";
		++it2;
	}*/
	return 0;
}